// 	Name: 02.c
//	Description: Chapter 6 project 2
//	Author: StableGenius
//	Date: 2020-07-08
//	Email: feng@dongfa.pro

#include <stdio.h>

int main(void) {
	int m, n, r;
	printf("Enter two integers: ");
	scanf("%d %d", &m, &n);
	
	while (n != 0) {
		r = m % n;
		m = n;
		n = r;
	}
	
	printf("\nGreatest common divisor: %d\n", m);
	
	return 0;
}
